﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class showzc : System.Web.UI.Page
{
    AccessDAO dao = new AccessDAO();
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!Page.IsPostBack)
        {
            string s3 = "select * from billInfo where id=1";
            DataSet ds3 = dao.getDs(s3);
            this.dlProdu.DataSource = ds3;
            this.dlProdu.DataBind();

            int id = Convert.ToInt32(Request.QueryString["id"].ToString());
            string sl = "update zhengce set num=num+1 where id=" + id;
            dao.getComm(sl);

            string ss = "select * from zhengce where id=" + id;
            DataSet ds = dao.getDs(ss);
            this.reGsNew.DataSource = ds;
            this.reGsNew.DataBind();

        }
    }
}
